﻿using System;
namespace AiLuWeb.Model
{
	///<summary>
	///
	///</summary>
	public class Products : ModelBase<int>
	{
		#region 成员字段
		
		private string _author = String.Empty;
		private int _cId = default(Int32);
		private string _content = String.Empty;
		private int _count = default(Int32);
		private string _inIP = String.Empty;
		private DateTime? _inTime = null;
		///<summary>
		///发布时间查询区间值
		///</summary>
		private DateTime[] _inTimespan = null;
		private string _pic = String.Empty;
		private int _state = default(Int32);
		private string _syno = String.Empty;
		private string _title = String.Empty;
		private string _top = String.Empty;
		private string _upIP = String.Empty;
		private DateTime? _upTime = null;
		///<summary>
		///更新时间查询区间值
		///</summary>
		private DateTime[] _upTimespan = null;
        private string _url = String.Empty;
        private string _model = String.Empty;
        private string _brand = String.Empty;
        private string _price = String.Empty;
        private string _sPinYin = String.Empty;
		
		#endregion
		
		#region 构造方法
		
		public Products() { }
		
		#endregion
		
		#region 成员方法
		
		public override int GetHashCode()
		{
			System.Text.StringBuilder sb = new System.Text.StringBuilder();
			sb.Append(this.GetType().FullName);
			sb.Append(_author);
			sb.Append(_cId);
			sb.Append(_content);
			sb.Append(_count);
			sb.Append(_inIP);
			sb.Append(_inTime);
			sb.Append(_pic);
			sb.Append(_state);
			sb.Append(_syno);
			sb.Append(_title);
			sb.Append(_top);
			sb.Append(_upIP);
			sb.Append(_upTime);
            sb.Append(_url);
            sb.Append(_model);
            sb.Append(_brand);
            sb.Append(_price);
            sb.Append(_sPinYin);
			return sb.ToString().GetHashCode();
		}
		
		#endregion
		
		#region 成员属性
		
		///<summary>
		///作者
		///</summary>
		public string Author
		{
			get
			{
				return _author;
			}
			set
			{
				_author = value;
			}
		}
		///<summary>
		///分类ID
		///</summary>
		public int CId
		{
			get
			{
				return _cId;
			}
			set
			{
				_cId = value;
			}
		}
		///<summary>
		///成功案例内容
		///</summary>
		public string Content
		{
			get
			{
				return _content;
			}
			set
			{
				_content = value;
			}
		}
		///<summary>
		///点击量
		///</summary>
		public int Count
		{
			get
			{
				return _count;
			}
			set
			{
				_count = value;
			}
		}
		///<summary>
		///添加IP
		///</summary>
		public string InIP
		{
			get
			{
				return _inIP;
			}
			set
			{
				_inIP = value;
			}
		}
		///<summary>
		///发布时间
		///</summary>
		public DateTime? InTime
		{
			get
			{
				return _inTime;
			}
			set
			{
				_inTime = value;
			}
		}
		///<summary>
		///发布时间查询区间值
		///</summary>
		public DateTime[] InTimespan{
			get
			{
				return _inTimespan;
			}
			set
			{
				_inTimespan = value;
			}
		}
		///<summary>
		///成功案例封面图片
		///</summary>
		public string Pic
		{
			get
			{
				return _pic;
			}
			set
			{
				_pic = value;
			}
		}
		///<summary>
		///状态
		///</summary>
		public int State
		{
			get
			{
				return _state;
			}
			set
			{
				_state = value;
			}
		}
		///<summary>
		///核心提示
		///</summary>
		public string Syno
		{
			get
			{
				return _syno;
			}
			set
			{
				_syno = value;
			}
		}
		///<summary>
		///成功案例名称
		///</summary>
		public string Title
		{
			get
			{
				return _title;
			}
			set
			{
				_title = value;
			}
		}
		///<summary>
		///推荐设置
		///</summary>
		public string Top
		{
			get
			{
				return _top;
			}
			set
			{
				_top = value;
			}
		}
		///<summary>
		///更新IP
		///</summary>
		public string UpIP
		{
			get
			{
				return _upIP;
			}
			set
			{
				_upIP = value;
			}
		}
		///<summary>
		///更新时间
		///</summary>
		public DateTime? UpTime
		{
			get
			{
				return _upTime;
			}
			set
			{
				_upTime = value;
			}
		}
		///<summary>
		///更新时间查询区间值
		///</summary>
		public DateTime[] UpTimespan{
			get
			{
				return _upTimespan;
			}
			set
			{
				_upTimespan = value;
			}
		}
		///<summary>
		///成功案例网址
		///</summary>
		public string Url
		{
			get
			{
				return _url;
			}
			set
			{
				_url = value;
			}
		}
        ///<summary>
        ///核心提示
        ///</summary>
        public string Model
        {
            get
            {
                return _model;
            }
            set
            {
                _model = value;
            }
        }
        ///<summary>
        ///品牌
        ///</summary>
        public string Brand
        {
            get
            {
                return _brand;
            }
            set
            {
                _brand = value;
            }
        }
        ///<summary>
        ///价格
        ///</summary>
        public string Price
        {
            get
            {
                return _price;
            }
            set
            {
                _price = value;
            }
        }
        ///<summary>
        ///首字母
        ///</summary>
        public string SPinYin
        {
            get
            {
                return _sPinYin;
            }
            set
            {
                _sPinYin = value;
            }
        }
		
        /// <summary>
        /// 自定义查询条件
        /// </summary>
        public string CustomWhere { get; set; }
		
		#endregion
	}
		
	public static class ProductsHash
	{
		public const string TopNum = "TopNum";
		public const string OrderField = "OrderField";
		public const string OrderDirection = "OrderDirection";
		public const string Author = "Author";
		public const string CId = "CId";
		public const string Content = "Content";
		public const string Count = "Count";
		public const string Id = "Id";
		public const string InIP = "InIP";
		public const string InTime = "InTime";
		public const string Pic = "Pic";
		public const string State = "State";
		public const string Syno = "Syno";
		public const string Title = "Title";
		public const string Top = "Top";
		public const string UpIP = "UpIP";
		public const string UpTime = "UpTime";
        public const string Url = "Url";
        public const string Model = "Model";
        public const string Brand = "Brand";
        public const string Price = "Price";
        public const string SPinYin = "SPinYin";
		
        public const string CustomWhere = "CustomWhere";
	}
}